<script setup>
import { ref } from "vue";

const counter = ref(99);
// eslint-disable-next-line no-undef
const emit = defineEmits(["oneClick"]);
const handOneClick = () => {
  emit("oneClick", counter.value);
  console.log("one组件进行了点击", counter.value);
};
</script>

<template>
  <div class="one">
    <button @click="handOneClick">one</button>
  </div>
</template>

<style scoped>
.one {
}
</style>